package com.wind.taobao.api.picture.rest
{
	import com.wind.taobao.api.IPrivateAPI;
	import com.wind.taobao.core.exception.InvalidRequestParametersException;
	import com.wind.taobao.core.util.TaobaoUtils;
	import com.wind.taobao.core.webservice.TaobaoRequest;

	/**
	 *  taobao.picture.category.get Request
	 * @author fxy
	 *
	 */
	public class PictureCategoryGetRequest extends TaobaoRequest implements IPrivateAPI
	{
		public override function get method():String
		{
			return "taobao.picture.category.get"
		}
		/**
		 * Y 	需要返回的字段,根据PictureCategory中的以下字段：picture_category_id,picture_category_name,position,type,total,created,modified ,多个字段用“,”分隔。如：type,total,created,modified
		 */
		[Bindable]
		public var fields:String;

		/**
		 * N 	图片分类ID
		 */
		[Bindable]
		public var picture_category_id:int;
		/**
		 * N 	图片分类名，不支持模糊查询
		 */
		[Bindable]
		public var picture_category_name:String;

		/**
		 * N 	分类类型,fixed代表店铺装修分类类别，auction代表宝贝分类类别，user-define代表用户自定义分类类别
		 */
		[Bindable]
		public var type:String;

		public override function validate():void
		{
			if (!TaobaoUtils.hasAllValue([fields]))
			{
				throw new InvalidRequestParametersException("请求参数[fields]不能为空");
			}
		}
	}
}